<html>
<head>
	<script src="http://yui.yahooapis.com/2.5.2/build/yuiloader/yuiloader-beta-min.js"></script> 
	<script src="../js/core.js"></script>
</head>
	
<body class="yui-skin-sam">

	<div id='form'></div>

	<script lang="javascript">

		pH.require('data.js');
		pH.require('form.js');

		var loader = new YAHOO.util.YUILoader({

			require:  ["container", "connection", "json", "logger", "editor", "datasource", "datatable", "button", "tabview"],
			filter: "DEBUG",
			loadOptional: true,
			onSuccess: function () { 
				
				YAHOO.widget.Logger.enableBrowserConsole();

				var data;

				var callback = function()
				{
					var dt= pH.Form( { 'data': data, 'container': 'datatable' } );
				}
				
				data = new pH.Data( 
				{
					url: 'testdata.php?', 
					on_ready: callback
				});
			}
		}).insert();
		

	</script>

</body>
</html>
